/*
 * Copyright (C) 2006-2012 TongYan Corporation
 * All rights reserved.
 *
 * @brief info:
 *
 * @author: 王哲成 - wangzhecheng@yeah.net
 * @date: 2021.05.25
 * @last modified: 2021-05-25 16:05
 *
 */

#include "../include/NewtonMethod.hpp"
#include "../include/PeaksFunction.hpp"

int main() {
  ParamSet ps;

  ps.append("x", -4, 4);
  ps.append("y", -4, 4);

  PeaksValue fx;

  NewtonMethod newton(&fx, 100, 1e-2);

  newton.getOptimalSolution(ps);

  return 0;
}
